home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8090 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 6f | 6e 65 77 73 2e 69 6f 6e |Path: io|news.ion|
|00000010| 65 74 2e 6e 65 74 21 75 | 73 65 6e 65 74 0a 46 72 |et.net!u|senet.Fr|
|00000020| 6f 6d 3a 20 74 6d 61 63 | 6b 40 69 6f 6e 65 74 2e |om: tmac|k@ionet.|
|00000030| 6e 65 74 20 28 54 69 6d | 20 4d 63 4b 69 6e 6e 65 |net (Tim| McKinne|
|00000040| 79 29 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |y).Newsg|roups: c|
|00000050| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000060| 6a 65 63 74 3a 20 53 74 | 72 75 63 74 75 72 65 20 |ject: St|ructure |
|00000070| 63 68 61 72 61 63 74 65 | 72 73 0a 44 61 74 65 3a |characte|rs.Date:|
|00000080| 20 31 34 20 46 65 62 20 | 31 39 39 36 20 31 34 3a | 14 Feb |1996 14:|
|00000090| 30 30 3a 31 39 20 47 4d | 54 0a 4f 72 67 61 6e 69 |00:19 GM|T.Organi|
|000000a0| 7a 61 74 69 6f 6e 3a 20 | 4c 61 6e 67 73 74 6f 6e |zation: |Langston|
|000000b0| 20 55 6e 69 76 65 72 73 | 69 74 79 20 52 65 73 65 | Univers|ity Rese|
|000000c0| 61 72 63 68 20 61 6e 64 | 20 45 78 74 65 6e 73 69 |arch and| Extensi|
|000000d0| 6f 6e 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |on.Messa|ge-ID: <|
|000000e0| 34 66 73 70 74 6a 24 63 | 39 31 40 69 6f 6e 65 77 |4fsptj$c|91@ionew|
|000000f0| 73 2e 69 6f 6e 65 74 2e | 6e 65 74 3e 0a 52 65 70 |s.ionet.|net>.Rep|
|00000100| 6c 79 2d 54 6f 3a 20 74 | 6d 61 63 6b 40 6c 75 72 |ly-To: t|mack@lur|
|00000110| 65 73 65 78 74 2e 65 64 | 75 0a 4e 4e 54 50 2d 50 |esext.ed|u.NNTP-P|
|00000120| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 73 74 61 |osting-H|ost: sta|
|00000130| 74 69 6f 6e 31 2e 6c 75 | 72 65 73 65 78 74 2e 65 |tion1.lu|resext.e|
|00000140| 64 75 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |du.Mime-|Version:|
|00000150| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000160| 65 3a 20 54 65 78 74 2f | 50 6c 61 69 6e 3b 20 63 |e: Text/|Plain; c|
|00000170| 68 61 72 73 65 74 3d 49 | 53 4f 2d 38 38 35 39 2d |harset=I|SO-8859-|
|00000180| 31 0a 58 2d 4e 65 77 73 | 72 65 61 64 65 72 3a 20 |1.X-News|reader: |
|00000190| 57 69 6e 56 4e 20 30 2e | 39 39 2e 35 0a 0a 09 49 |WinVN 0.|99.5...I|
|000001a0| 20 61 6d 20 6c 65 61 72 | 6e 69 6e 67 20 43 2b 2b | am lear|ning C++|
|000001b0| 20 66 72 6f 6d 20 61 20 | 62 6f 6f 6b 20 61 6e 64 | from a |book and|
|000001c0| 20 76 65 72 79 20 6d 75 | 63 68 20 6f 6e 20 6d 79 | very mu|ch on my|
|000001d0| 20 6f 77 6e 2e 20 49 20 | 68 61 76 65 20 0a 66 69 | own. I |have .fi|
|000001e0| 6e 61 6c 6c 79 20 6c 65 | 61 72 6e 65 64 20 68 6f |nally le|arned ho|
|000001f0| 77 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 73 74 |w to cre|ate a st|
|00000200| 72 75 63 74 75 72 65 20 | 61 6e 64 20 77 72 69 74 |ructure |and writ|
|00000210| 65 20 74 68 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |e the in|formatio|
|00000220| 6e 20 0a 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 20 |n .conta|ined in |
|00000230| 69 74 20 74 6f 20 61 20 | 72 61 6e 64 6f 6d 20 61 |it to a |random a|
|00000240| 63 63 65 73 73 20 66 69 | 6c 65 2e 20 49 20 63 61 |ccess fi|le. I ca|
|00000250| 6e 20 61 6c 73 6f 20 70 | 75 6c 6c 20 61 6e 79 20 |n also p|ull any |
|00000260| 70 61 72 74 20 6f 66 20 | 74 68 65 20 0a 69 6e 66 |part of |the .inf|
|00000270| 6f 72 6d 61 74 69 6f 6e | 20 66 72 6f 6d 20 74 68 |ormation| from th|
|00000280| 65 20 66 69 6c 65 2c 20 | 68 6f 77 65 76 65 72 20 |e file, |however |
|00000290| 49 20 74 68 69 6e 6b 20 | 74 68 61 74 20 74 68 65 |I think |that the|
|000002a0| 72 65 20 73 68 6f 75 6c | 64 20 62 65 20 61 20 77 |re shoul|d be a w|
|000002b0| 61 79 20 69 6e 20 0a 77 | 68 69 63 68 20 49 20 63 |ay in .w|hich I c|
|000002c0| 61 6e 20 64 6f 20 69 74 | 20 62 65 74 74 65 72 2e |an do it| better.|
|000002d0| 20 49 66 20 6d 79 20 73 | 74 72 75 63 74 75 72 65 | If my s|tructure|
|000002e0| 20 6c 6f 6f 6b 73 20 6c | 69 6b 65 20 74 68 65 20 | looks l|ike the |
|000002f0| 6f 6e 65 20 62 65 6c 6f | 77 2c 20 69 73 20 74 68 |one belo|w, is th|
|00000300| 65 72 65 20 0a 61 20 77 | 61 79 20 69 6e 20 77 68 |ere .a w|ay in wh|
|00000310| 69 63 68 20 49 20 63 61 | 6e 20 67 65 74 20 74 68 |ich I ca|n get th|
|00000320| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 75 73 |e inform|ation us|
|00000330| 69 6e 67 20 74 68 65 20 | 73 74 72 69 6e 67 20 76 |ing the |string v|
|00000340| 61 72 69 61 62 6c 65 20 | 6e 61 6d 65 20 0a 69 6e |ariable |name .in|
|00000350| 73 74 65 61 64 20 6f 66 | 20 75 73 69 6e 67 20 74 |stead of| using t|
|00000360| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |he numbe|r of the|
|00000370| 20 73 74 72 75 63 74 75 | 72 65 20 6f 72 64 65 72 | structu|re order|
|00000380| 2e 0a 0a 73 74 72 75 63 | 74 20 63 61 72 5b 31 30 |...struc|t car[10|
|00000390| 5d 7b 0a 09 20 20 20 63 | 68 61 72 20 6e 61 6d 65 |]{.. c|har name|
|000003a0| 5b 31 35 5d 3b 0a 09 20 | 20 20 69 6e 74 20 6d 69 |[15];.. | int mi|
|000003b0| 6c 65 61 67 65 3b 0a 09 | 20 20 20 7d 0a 0a 09 49 |leage;..| }...I|
|000003c0| 20 64 6f 20 75 6e 64 65 | 72 73 74 61 6e 64 20 74 | do unde|rstand t|
|000003d0| 68 61 74 20 74 68 65 20 | 73 74 72 69 6e 67 20 69 |hat the |string i|
|000003e0| 6e 20 61 20 73 74 72 75 | 63 74 75 72 65 20 69 73 |n a stru|cture is|
|000003f0| 20 6e 6f 74 20 72 65 61 | 6c 6c 79 20 61 20 0a 73 | not rea|lly a .s|
|00000400| 74 72 69 6e 67 2c 20 62 | 75 74 20 61 20 73 65 72 |tring, b|ut a ser|
|00000410| 69 65 73 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |ies of c|haracter|
|00000420| 73 2e 20 49 20 68 61 76 | 65 20 74 72 69 65 64 20 |s. I hav|e tried |
|00000430| 61 20 72 6f 75 74 69 6e | 65 20 74 68 61 74 20 69 |a routin|e that i|
|00000440| 6e 63 72 65 61 73 65 64 | 20 0a 74 68 65 20 73 74 |ncreased| .the st|
|00000450| 72 75 63 74 75 72 65 20 | 6f 72 64 65 72 20 6e 75 |ructure |order nu|
|00000460| 6d 62 65 72 20 77 68 69 | 6c 65 20 63 68 65 63 6b |mber whi|le check|
|00000470| 69 6e 67 20 66 6f 72 20 | 61 20 73 74 72 69 6e 67 |ing for |a string|
|00000480| 20 76 61 72 69 61 62 6c | 65 20 6d 61 74 63 68 2c | variabl|e match,|
|00000490| 20 62 75 74 20 0a 74 68 | 69 73 20 73 65 65 6d 65 | but .th|is seeme|
|000004a0| 64 20 74 6f 20 77 72 69 | 74 65 20 65 78 74 72 61 |d to wri|te extra|
|000004b0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 6e 74 | informa|tion int|
|000004c0| 6f 20 74 68 65 20 70 61 | 72 74 20 6f 66 20 74 68 |o the pa|rt of th|
|000004d0| 65 20 73 74 72 75 63 74 | 75 72 65 20 74 68 61 74 |e struct|ure that|
|000004e0| 20 0a 77 61 73 20 6e 6f | 74 20 79 65 74 20 66 69 | .was no|t yet fi|
|000004f0| 6c 6c 65 64 3f 20 0a 0a | 09 49 20 68 6f 70 65 20 |lled? ..|.I hope |
|00000500| 74 68 61 74 20 6d 79 20 | 65 78 70 6c 61 6e 61 74 |that my |explanat|
|00000510| 69 6f 6e 20 69 73 20 63 | 6c 65 61 72 20 65 6e 6f |ion is c|lear eno|
|00000520| 75 67 68 20 61 6e 64 20 | 49 20 77 6f 75 6c 64 20 |ugh and |I would |
|00000530| 6c 69 6b 65 20 74 6f 20 | 74 68 61 6e 6b 20 0a 79 |like to |thank .y|
|00000540| 6f 75 20 66 6f 72 20 61 | 6e 79 20 68 65 6c 70 20 |ou for a|ny help |
|00000550| 74 68 61 74 20 63 61 6e | 20 62 65 20 70 72 6f 76 |that can| be prov|
|00000560| 69 64 65 64 2e 0a 0a 3a | 29 0a 0a 54 69 6d 09 0a |ided...:|)..Tim..|
|00000570| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+